-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP: raylib5 #180
base: master
Are you sure you want to change the base?
WIP: raylib5 #180
Conversation
Updating |
On mac M1 (Sonoma 14.6.1 (23G93)) I think issue is something in node-raylib.cc. It's a bit hard to tell because it buries the build-error (it seems to select ninja, and I always have that prob with ninja, since I am dyslexic and it strips colors) but I searched for error, and I see these 2:
looks like In both cases, it appears to be usage of inline ModelAnimation ModelAnimationFromValue(const Napi::CallbackInfo& info, int index) {
return {
intFromValue(info, index + 0),
intFromValue(info, index + 1),
(BoneInfo *) pointerFromValue(info, index + 2),
(Transform **) pointerFromValue(info, index + 3),
// HERE
pointerFromValue(info, index + 4)
};
}
inline AutomationEvent AutomationEventFromValue(const Napi::CallbackInfo& info, int index) {
return {
unsignedintFromValue(info, index + 0),
unsignedintFromValue(info, index + 1),
// HERE
pointerFromValue(info, index + 2)
};
} In other uses of these, they have type-prefixes (to set what kind of pointer it is) so that might be the prob. These are the 2 type-conversions: // ModelAnimation
typedef struct ModelAnimation {
int boneCount; // Number of bones
int frameCount; // Number of animation frames
BoneInfo *bones; // Bones information (skeleton)
Transform **framePoses; // Poses array by frame
char name[32]; // Animation name
} ModelAnimation;
// Automation event
typedef struct AutomationEvent {
unsigned int frame; // Event frame
unsigned int type; // Event type (AutomationEventType)
int params[4]; // Event parameters (if required)
} AutomationEvent; I tried to manually fix on first one, to try to match it to other calls of inline ModelAnimation ModelAnimationFromValue(const Napi::CallbackInfo& info, int index) {
return {
intFromValue(info, index + 0),
intFromValue(info, index + 1),
(BoneInfo *) pointerFromValue(info, index + 2),
(Transform **) pointerFromValue(info, index + 3),
(char*)pointerFromValue(info, index + 4)
};
} which caused another error:
so I am not sure how to resolve. |
Raylib5 was released. This branch documents the effort to upgrade.
Currently this fails to build. These are missing:
GenImageGradientV
GenImageGradientH
LoadModelAnimations
DrawLineBezierQuad
DrawLineBezierCubic